<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
	uri="http://java.sun.com/jsf/html" prefix="h"%><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<f:view>
		<h:messages />
		<h:form>
			<h:panelGrid border="1" columns="2">
				<h:outputLabel value="Nome" for="nome"></h:outputLabel>
				<h:inputText id="nome" value="#{usuarioBean.novo.nome}" required= "true" requiredMessage="Você precisa informar o nome."></h:inputText>
				<h:outputLabel value="Login" for="Login"></h:outputLabel>
				<h:inputText id="login" value="#{usuarioBean.novo.login}" required= "true" requiredMessage="Você precisa informar o login."/>
				<h:outputLabel value="Senha" for="senha"></h:outputLabel>
				<h:inputSecret id="senha" value="#{usuarioBean.novo.senha}" required= "true" requiredMessage="Você precisa informar a senha."/>
				<h:outputLabel value="Confirmar Senha" for="confirmasenha"></h:outputLabel>
				<h:inputSecret id="confirmasenha" value="#{usuarioBean.confirmaSenha}" required= "true" requiredMessage="Você precisa confirmar a senha."/>
				<h:commandButton action="#{usuarioBean.cadastrarUsuario}" value="Cadastrar"></h:commandButton>
				<h:commandButton action="login" value="Voltar"></h:commandButton>
			</h:panelGrid>
				
		</h:form>
		<h:form>
			<h:commandLink action="login">
				<h:outputText value="voltar"></h:outputText>
			</h:commandLink>
		</h:form>
	</f:view>
</body>
</html>